<template>
	<view class="container">
		<!-- <view class="cell flex-ac flex-b" @click="$Jump.Open('./changePwd')">
			<view class="hd">修改密码</view>
			<image class="bd" src="../../../static/img/yjt.png" mode=""></image>
		</view> -->
		<view class="cell flex-ac flex-b" @click="$Jump.Open('./yhxy')">
			<view class="hd">用户协议</view>
			<image class="bd" src="../../../static/img/yjt.png" mode=""></image>
		</view>
		<view class="cell flex-ac flex-b" @click="$Jump.Open('./yszc')">
			<view class="hd">隐私政策</view>
			<image class="bd" src="../../../static/img/yjt.png" mode=""></image>
		</view>
		
		<view class="btnBox">
			<view class="btn flexmid" @click="loginOut">退出</view>
			<x-botSpace></x-botSpace>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				botDis: this.$app.globalData.botDis
			}
		},
		onLoad(opt) {
			if(opt) console.log('opt:', opt)
		},
		methods: {
			loginOut(){
				uni.showModal({
					title: '提示',
					content: '您确定要退出吗？',
					confirmColor: '#1672fc',
					success: (res) => {
						if(res.confirm){
							// this.$Toast.messageIcon('操作成功')
							// uni.removeStorageSync('userType')
							// uni.removeStorageSync('user')
							// uni.removeStorageSync('token')
							// setTimeout(()=>{
							// 	this.$Jump.reLaunch('/pages/login/login')
							// },1500)
							if(res.confirm){
								this.$Toast.messageIcon('操作成功')
								uni.removeStorageSync('userName')
								uni.removeStorageSync('token')
								setTimeout(()=>{
									this.$Jump.reLaunch('/pages/login/login')
								},1500)
							}
						}
					}
				})
			},
		}
	}
</script>

<style lang="scss">
	page{ background-color: #F7F7F7; }
</style>

<style lang="scss" scoped>
	// @import './style.scss';
	.cell{
		width: 100%;
		height: 110rpx;
		background-color: #fff;
		padding: 0 30rpx;
		border-bottom: 1rpx solid #EEEEEE;
		.hd{
			font-size: 30rpx;
			color: #3F4151;
		}
		.bd{
			width: 40rpx;
			height: 40rpx;
		}
	}
	.btnBox{
		width: 100%;
		padding: 12rpx 32rpx;
		background-color: #fff;
		position: fixed;
		left: 0;
		bottom: 0;
		.btn{
			width: 100%;
			height: 88rpx;
			border: 2rpx solid #cccccc;
			border-radius: 8rpx;
			color: #999999;
			font-size: 30rpx;
		}
	}
	.cell:last-child{
		border-bottom: 0;
	}
</style>
